package com.soft.sitegenerator.form;

import java.util.Collection;

import org.apache.struts.action.ActionForm;

import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.Sheet;
import com.soft.sitegenerator.business.hibernate.WebSite;
import com.soft.sitegenerator.business.hibernate.SitePage;

public class SitePageEditForm extends ActionForm {

	/*
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Component component = new DataBaseComponent();

	private SitePage sitePage = (SitePage) component.getBean("sitePagesHib");

	private Collection webSites;

	private Long idWebSite = null;

	private Collection sheets;

	private Long idSheet = null;

	public Component getComponent() {
		return component;
	}

	public void setComponent(Component component) {
		this.component = component;
	}

	public Long getIdSheet() {
		return idSheet;
	}

	public void setIdSheet(Long idSheet) {
		this.idSheet = idSheet;
	}

	public Long getIdWebSite() {
		return idWebSite;
	}

	public void setIdWebSite(Long idWebSite) {
		this.idWebSite = idWebSite;
	}

	public Collection getSheets() {
		return sheets;
	}

	public void setSheets(Collection sheets) {
		this.sheets = sheets;
	}

	public Collection getWebSites() {
		return webSites;
	}

	public void setWebSites(Collection webSites) {
		this.webSites = webSites;
	}

	public SitePage getSitePage() {
		return sitePage;
	}

	public void setSitePage(SitePage sitePage) {
		this.sitePage = sitePage;
	}
	
	public Long getId() {
		return sitePage.getId();
	}

	public void setId(Long id) {
		this.sitePage.setId(id);
	}
	
	public String getName() {
		return sitePage.getName();
	}

	public void setName(String name) {
		this.sitePage.setName(name);
	}
	
	public String getTitle() {
		return sitePage.getTitle();
	}

	public void setTitle(String title) {
		this.sitePage.setTitle(title);
	}
	
	public String getContextPath() {
		return sitePage.getContextPath();
	}

	public void setContextPath(String contextPath) {
		this.sitePage.setContextPath(contextPath);
	}
	
	public WebSite getWebSite() {
		return sitePage.getWebSite();
	}

	public void setWebSite(WebSite webSite) {
		this.sitePage.setWebSite(webSite);
	}
	
	public Sheet getSheet() {
		return sitePage.getSheet();
	}

	public void setSheet(Sheet sheet) {
		this.sitePage.setSheet(sheet);
	}
	
	

}